package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.StudentFaceManyDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 人脸采集 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2024-04-19
 */
public interface StudentFaceManyDetailMapper extends BaseMapper<StudentFaceManyDetail> {

    @Select("select * from student_face_many_detail where student_id <> ${studentId} and entity_id = ${entityId} and deleted =0 GROUP BY student_id")
    public List<StudentFaceManyDetail> getStudentFaceManyDetailByStudentId(@Param("studentId") Long studentId, @Param("entityId") Long entityId);
}
